package com.example.WeChat.Service.Dao;

public interface login {
    // 用户名和密码登录 返回用户id
    Long loginByUserNameAndPassword(String userName, String password);

    // 邮箱和验证码登录
    boolean loginByEmailAndVerificationCode(String email, String verificationCode);

    // 手机号和验证码登录
    boolean loginByPhoneAndVerificationCode(String phone, String verificationCode);

    // 重置密码
    boolean resetPassword(String email, String newPassword);

    // 找回密码
    boolean findPassword(String userName, String email);

    // 发送邮箱验证码
    boolean sendEmailVerificationCode(String email);

    // 发送手机验证码
    boolean sendPhoneVerificationCode(String phone);

    // 验证邮箱验证码
    boolean verifyEmailVerificationCode(String email, String verificationCode);

    // 验证手机验证码
    boolean verifyPhoneVerificationCode(String phone, String verificationCode);
}
